/**
 * 
 */
package com.inspectortime.domain.impl;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.inspectortime.common.PersistentEntityBase;
import com.inspectortime.domain.HomeBuyer;
import com.inspectortime.domain.type.Address;
import com.inspectortime.domain.type.Name;
import com.inspectortime.timestamp.Timestamped;

/**
 * @author waldiko
 * 
 */
@Entity
@Table(name = "HOME_BUYER")
public class HomeBuyerImpl extends PersistentEntityBase implements HomeBuyer,
		Timestamped {

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Date getLastModifiedTime() {
		return lastModifiedTime;
	}

	public void setLastModifiedTime(Date lastModifiedTime) {
		this.lastModifiedTime = lastModifiedTime;
	}

	private Date createdTime;
	private Date lastModifiedTime;

	private Address address;
	private Name name;
	private String fax;
	private String email;

	private String phone;
	private String secondaryPhone;

	/**
	 * @deprecated
	 */
	private String cellPhone;
	/**
	 * @deprecated
	 */
	private String homePhone;
	/**
	 * @deprecated
	 */
	private String otherPhone;

	public HomeBuyerImpl() {
	}

	public HomeBuyerImpl(Name name) {
		this.name = name;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.inspectortime.domain.HomeBuyer#getAddress()
	 */
	public Address getAddress() {
		return address;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.inspectortime.domain.HomeBuyer#getName()
	 */
	public Name getName() {
		return name;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.inspectortime.domain.HomeBuyer#setAddress()
	 */
	public void setAddress(Address address) {
		this.address = address;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.inspectortime.domain.HomeBuyer#setName(com.intellectis.entity.common
	 * .Name)
	 */
	public void setName(Name name) {
		this.name = name;
	}

	@Column(length = 100)
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(length = 20)
	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Column(length = 20)
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(length = 20)
	public String getSecondaryPhone() {
		return secondaryPhone;
	}

	public void setSecondaryPhone(String secondaryPhone) {
		this.secondaryPhone = secondaryPhone;
	}

	/**
	 * @deprecated
	 */
	@Column(length = 20)
	public String getCellPhone() {
		return cellPhone;
	}

	/**
	 * @deprecated
	 */
	public void setCellPhone(String cellPhone) {
		this.cellPhone = cellPhone;
	}

	/**
	 * @deprecated
	 */
	@Column(length = 20)
	public String getHomePhone() {
		return homePhone;
	}

	/**
	 * @deprecated
	 */
	public void setHomePhone(String homePhone) {
		this.homePhone = homePhone;
	}

	/**
	 * @deprecated
	 */
	@Column(length = 20)
	public String getOtherPhone() {
		return otherPhone;
	}

	/**
	 * @deprecated
	 */
	public void setOtherPhone(String otherPhone) {
		this.otherPhone = otherPhone;
	}

}
